package teacher;

import secretary.defineSemester;
import basic.ClientConsole;

import com.sun.rowset.CachedRowSetImpl;

import flexibility.userData;

public class getFeedbackFiles {
		
		public CachedRowSetImpl getFeedbackFile(ClientConsole teacherConnection,
				CachedRowSetImpl rs, userData T_Data,Integer myID,String sid,String aID,int f){
			//f=1 Uploading evaluation file, f=2 Uploading comments file
			
			T_Data.deleteAll();
			if(f==1){
			T_Data.addData(104);	
			}
			else {
				T_Data.addData(105);
			}
			T_Data.addData(1);
			T_Data.addData(sid);
			T_Data.addData(aID);
			
			teacherConnection.acceptMsg(T_Data);
	        rs = teacherConnection.getResults();
			return rs;
			
		}

}
